import { constantRoutes } from '@/router'
console.log(constantRoutes)
export default {
  namespaced: true,
  // 公共的数据
  state: {
    menuList: [...constantRoutes] // 所有可以访问的路由配置

  },
  mutations: {
    setMenuList(state, asyncRouter) {
      console.log(asyncRouter)
      state.menuList = [...constantRoutes, ...asyncRouter]
    }
  }
}

